<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Collision Checker: cpp/collision/src/raytrace_utils.cc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_df511e5bd85cec96854b39d5e1c27aa8.html">cpp</a></li><li class="navelem"><a class="el" href="dir_bf0f0c8865c1942e08ab5157e2c596db.html">collision</a></li><li class="navelem"><a class="el" href="dir_0bc2acc18702bc40f3a0aa3bc19285f7.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">raytrace_utils.cc File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="line__segment_8h_source.html">collision/line_segment.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="point_8h_source.html">collision/narrowphase/point.h</a>&quot;</code><br />
<code>#include &lt;Eigen/Dense&gt;</code><br />
<code>#include &quot;<a class="el" href="application_8h_source.html">collision/application.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="raytrace__primitive_8h_source.html">collision/raytrace_primitive.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="raytrace__utils_8h_source.html">collision/raytrace_utils.h</a>&quot;</code><br />
<code>#include &lt;math.h&gt;</code><br />
</div>
<p><a href="raytrace__utils_8cc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_vector2d_sort___x.html">collision::raytrace::Vector2dSort_X</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_vector2d_sort___y.html">collision::raytrace::Vector2dSort_Y</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___x.html">collision::raytrace::StartsLineSegmentSort_X</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___x__goe.html">collision::raytrace::StartsLineSegmentSort_X_goe</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___y.html">collision::raytrace::StartsLineSegmentSort_Y</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___y__goe.html">collision::raytrace::StartsLineSegmentSort_Y_goe</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___x.html">collision::raytrace::EndsLineSegmentSort_X</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___x__goe.html">collision::raytrace::EndsLineSegmentSort_X_goe</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___y.html">collision::raytrace::EndsLineSegmentSort_Y</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___y__goe.html">collision::raytrace::EndsLineSegmentSort_Y_goe</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacecollision"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision.html">collision</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacecollision_1_1raytrace"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html">collision::raytrace</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a7cb335e7c302c0f66577263e9cfa9d93"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a7cb335e7c302c0f66577263e9cfa9d93">collision::raytrace::rayTracePrimitive</a> (std::vector&lt; <a class="el" href="namespacecollision.html#a405f2c04407997fea529aad88f04ad30">collision::CollisionObjectConstPtr</a> &gt; collision_objects, const Eigen::Vector2d &amp;point1, const Eigen::Vector2d &amp;point2, std::vector&lt; LineSegment &gt; &amp;intersect, bool remove_overlaps)</td></tr>
<tr class="separator:a7cb335e7c302c0f66577263e9cfa9d93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad094906ddcf62d4d1dde8ef64fc5f938"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#ad094906ddcf62d4d1dde8ef64fc5f938">collision::raytrace::rayTracePostprocess</a> (const Eigen::Vector2d &amp;point1, const Eigen::Vector2d &amp;point2, std::vector&lt; Eigen::Vector2d &gt; inters1, std::vector&lt; LineSegment &gt; &amp;intersect, const <a class="el" href="classcollision_1_1_collision_object.html">collision::CollisionObject</a> *obj)</td></tr>
<tr class="separator:ad094906ddcf62d4d1dde8ef64fc5f938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a83f74b36376cf77bbea1b02498f459"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a9a83f74b36376cf77bbea1b02498f459">collision::raytrace::rayTraceRemoveOverlaps</a> (std::vector&lt; LineSegment &gt; intersect, std::vector&lt; LineSegment &gt; &amp;out_vec, int axis=0)</td></tr>
<tr class="separator:a9a83f74b36376cf77bbea1b02498f459"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a4d373e94f0ca792540629f46a4c4e7d9"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_vector2d_sort___x.html">collision::raytrace::Vector2dSort_X</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a4d373e94f0ca792540629f46a4c4e7d9">collision::raytrace::vector2dSortX</a></td></tr>
<tr class="separator:a4d373e94f0ca792540629f46a4c4e7d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c33a8b26d2ee2cbaeda82482c4e247a"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_vector2d_sort___y.html">collision::raytrace::Vector2dSort_Y</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a0c33a8b26d2ee2cbaeda82482c4e247a">collision::raytrace::vector2dSortY</a></td></tr>
<tr class="separator:a0c33a8b26d2ee2cbaeda82482c4e247a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa19b3e230e27746f18ac737e5ec0f8d6"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___x.html">collision::raytrace::StartsLineSegmentSort_X</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#aa19b3e230e27746f18ac737e5ec0f8d6">collision::raytrace::startsSortX</a></td></tr>
<tr class="separator:aa19b3e230e27746f18ac737e5ec0f8d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34b1c38a7506b51df9c61ceb7c5cf80e"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___x__goe.html">collision::raytrace::StartsLineSegmentSort_X_goe</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a34b1c38a7506b51df9c61ceb7c5cf80e">collision::raytrace::startsSortXgoe</a></td></tr>
<tr class="separator:a34b1c38a7506b51df9c61ceb7c5cf80e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51a140b6527f5ac4629ef7a40dc1c344"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___y.html">collision::raytrace::StartsLineSegmentSort_Y</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a51a140b6527f5ac4629ef7a40dc1c344">collision::raytrace::startsSortY</a></td></tr>
<tr class="separator:a51a140b6527f5ac4629ef7a40dc1c344"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf7e015d81b76df799d5973163832ff8"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_starts_line_segment_sort___y__goe.html">collision::raytrace::StartsLineSegmentSort_Y_goe</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#acf7e015d81b76df799d5973163832ff8">collision::raytrace::startsSortY_goe</a></td></tr>
<tr class="separator:acf7e015d81b76df799d5973163832ff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c09ac0434b5fa95c1119dcbbd9e7934"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___x.html">collision::raytrace::EndsLineSegmentSort_X</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a2c09ac0434b5fa95c1119dcbbd9e7934">collision::raytrace::endsSortX</a></td></tr>
<tr class="separator:a2c09ac0434b5fa95c1119dcbbd9e7934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50df7247e3726f657a5e92481e00b5dd"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___x__goe.html">collision::raytrace::EndsLineSegmentSort_X_goe</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a50df7247e3726f657a5e92481e00b5dd">collision::raytrace::endsSortX_goe</a></td></tr>
<tr class="separator:a50df7247e3726f657a5e92481e00b5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34036aa060cabf54bffae81c59f00f8d"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___y.html">collision::raytrace::EndsLineSegmentSort_Y</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a34036aa060cabf54bffae81c59f00f8d">collision::raytrace::endsSortY</a></td></tr>
<tr class="separator:a34036aa060cabf54bffae81c59f00f8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00992ab548b8c1e73cf3fa16ac7fa019"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structcollision_1_1raytrace_1_1_ends_line_segment_sort___y__goe.html">collision::raytrace::EndsLineSegmentSort_Y_goe</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacecollision_1_1raytrace.html#a00992ab548b8c1e73cf3fa16ac7fa019">collision::raytrace::endsSortY_goe</a></td></tr>
<tr class="separator:a00992ab548b8c1e73cf3fa16ac7fa019"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
